We often get asked this question at the start of STAT 220: Do I need to include R code on my homework?
Answer: Yes, but only include the R graphs and output that you need to support your answer to the exercises.
Please click herefor a handout with examples of a very good answer (and a not-so-good answer) to an exercise that requires using R.